<!DOCTYPE html>
<html xmlns:layout="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
	layout:decorate="~{common/layout}">

<head>
	<meta charset="UTF-8">
	<title>血糖记录管理系统</title>
	<style scoped lang="less">

	</style>
</head>

<body>
	<div layout:fragment="fragment_body">
		<van-row>
			<van-nav-bar
			  title="分享详情"
			  left-text="返回"
			  left-arrow
			  @click-left="onClickLeft"
			/>
		</van-row>
		<van-row>
			<van-cell-group>
			  <van-cell :title="share?.account?.accountNick" :value="share?.shareTime" :label="share?.shareTitle" />
			</van-cell-group>
		</van-row>
		<van-row>
			<div class="van-cell">{{share?.shareText}}</div>
		</van-row>
	</div>
</body>
<script type="text/javascript" layout:fragment="fragment_script">
	let vueData = {
		activeMenu: 'share',
		share: null
	}
	let vueComputed = {

	}
	let vueMethods = {
		onClickLeft(){
			window.location.href='/user/share'
		},
		getShare() {
			let that = this
			let shareId = urlParam('sid')
			postRequst('/user/getShare', {shareId: shareId}, true).then(function (resp) {
				that.share = resp
			})
		}
	}
	function vueCreated() {
		let that = this
		setTimeout(function(){
			that.getShare()
		}, 100)
	}
</script>

</html>